package com.cssp.dao.hibernate;

import java.util.List;

import com.cssp.dao.IUserDao;
import com.cssp.dao.hibernate.base.HibernateBaseDao;
import com.cssp.model.auth.User;

public class UserDao extends HibernateBaseDao<User> implements IUserDao {


	public User findByUserId(String userid){
		String hql = "FROM User WHERE userid=?";
		List<User> list = findByHql(hql, userid);
		if(!list.isEmpty()){
			return list.get(0);
		}
		return null;		
	}
}
